@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Vue 绿色主题变量 */
  --vue-green: #42b883;
  --vue-green-dark: #369870;
  --vue-green-light: #4fc08d;
}

/* 全局样式增强 */
body {
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
}

/* 平滑过渡效果 */
* {
  transition: all 0.2s ease-in-out;
}

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Vue 绿色主题工具类 */
.text-vue-green {
  color: var(--vue-green);
}

.bg-vue-green {
  background-color: var(--vue-green);
}

.bg-vue-green-dark {
  background-color: var(--vue-green-dark);
}

.border-vue-green {
  border-color: var(--vue-green);
}

/* 按钮样式增强 */
.btn-vue {
  background-color: var(--vue-green);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

.btn-vue:hover {
  background-color: var(--vue-green-dark);
}

.btn-vue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 代码块样式 */
pre {
  background-color: #f1f5f9;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .grid-responsive {
    grid-template-columns: 1fr;
  }
}

